<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

//    $router->resource("/auth/logs","");
    $router->resource('/goods_categories', 'GoodsCategoryController');
    //产品
    $router->resource("/goods","GoodsController");

    //某人收藏的产品列表
    $router->get("/collection_goods","GoodsCollectionController@index");
    //某件产品的收藏者列表
    $router->get("/collection_users","UserCollectionController@index");
    //某人的浏览记录
    $router->get("/goods_watch_logs","GoodsWatchLogController@index");
    //作家
    $router->resource("/authors","AuthorController");

    //积分商城相关规则
    $router->resource("/integral_rules","IntegralRuleController");
    //用户积分变动
    $router->resource("/user_integral_logs","UserIntegralLogController");
    //礼品券
    $router->resource("/coupons_config","CouponsConfigController");
    $router->resource("/coupons","CouponController");
    $router->get("/coupons/create_by_user/{coupons_config_id}","CouponController@create_by_user");
    //广告位
    $router->resource("/ad_position","AdPositionController");
    //广告
    $router->resource("/ad","AdController");
    //专题页
    $router->resource("/special_topic","SpecialTopicController");
    //用户
    $router->resource("/users","UserController");
    //用户类别
    $router->resource("/user_type","UserTypeController");

    //签到
    $router->resource("/sign_in_logs","SinInLogController");

    //外联地点
    $router->resource("/location","LocationController");
    $router->resource("/wl_goods","WlGoodController");
    //公司形象
    $router->resource("/company_article_types","CompanyArticleTypeController");

    $router->resource("/article_types","ArticleTypeController");
    //文章
    $router->resource("/articles","ArticleController");

    //公司信息
    $router->resource("/company_info","CompanyInfoController");
    $router->resource("/company_branch_info","CompanyBranchInfoController");
    //咨询询价列表
    $router->resource("/ask_for_goods","UserAskForGoodController");

    //在线展厅
    $router->resource("/online_exhibitions","OnlineExhibitionController");
    $router->resource("/online_exhibition_introductions","OnlineExhibitionIntroductionController");
    $router->resource("/online_exhibition_phonos","OnlineExhibitionPhotoController");
    $router->resource("/online_exhibition_evaluations","OnlineExhibitionEvaluationController");
    $router->resource("/online_exhibition_reports","OnlineExhibitionReportController");
    $router->resource("/online_exhibition_live_reports","OnlineExhibitionLiveReportController");
});
